<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../src/ppslick.js"></script>
<!--    <script src="../release/ppslick-1.0.0.min.js"></script>-->
</head>
<script>
    window.onload = function () {
        let login = PPSlick.createNormalLogin({closeOnSubmit:'true'});
        //为账号设置正则表达式校验
        // login.setUserNameRegExp(/^[0-9]{11}$/)
        //设置记住我标签
        // login.setRememberMeLabel("记住我")
        //禁用记住我
        // login.disableRememberMe();
        //设置忘记密码标签
        // login.setForgetPasswordLabel("忘记密码")
        //禁用忘记密码
        // login.disableForgetPassword();
        //更改标签
        // login.setTitle("Login")
        // login.setUserNamePlaceholder("Account")
        // login.setPasswordPlaceholder("Password")
        // login.setConfirmButtonLabel('OK')
        // login.setCancelButtonLabel('Cancel')
        login.onSubmit(function (userName,password,isRememberme) {
            console.log(`账号：${userName}`);
            console.log(`密码：${password}`);
            console.log(`是否记住我：${isRememberme}`);
        })
        //点击忘记密码触发
        // login.onForgetPassword(function (user) {
        //     console.log(`忘记密码：${user}`);
        // })

    }
</script>
<body>

</body>
</html>